<!--
  ~ Copyright 2017, OpenSkywalking Organization All rights reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  ~ Project repository: https://github.com/OpenSkywalking/skywalking-ui
  -->

<div class="row application-instance" v-for="application in appInstances">
    <div class="col-lg-12 application-code">
        <h5>{{application.applicationCode}}</h5>
    </div>
    <div class="col-lg-12">
        <div class="col-lg-1 col-sm-2" v-for="(instance, index) in application.instances"
             v-show="index < application.showCount">
            <div style="">
                <canvas height="80px" width="80px" :key="instance.id" :id="'canvas_' + instance.id" style="display:
                block;" class="donut"
                        v-instance="instance" v-on:click="goToInstance(instance.id)"></canvas>
            </div>
        </div>
        <div class="col-lg-1 col-sm-2" v-if="application.instances.length > application.showCount">
            <div class="text-center" style="margin-top:4%">
                <a href="javascript:void(0);" class="center-block" v-on:click="showMore(application)">{{application.instances.length
                    - application.showCount}} more...</a>
            </div>
        </div>
    </div>
</div>
